package com.example.demo.spring;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author wangsl
 * @date 2020/7/5 22:16
 * <p>
 * Description:
 */
public class Cat implements InitializingBean, DisposableBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("-----------Cat afterPropertiesSet----------");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("--------------Cat destroy--------------------------");
    }
}
